<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>表单提交</title>
</head>
<body>
  <form target="ifr" action="data.html">
    <label>用户名：<input name="name" type="text" /></label>
    <label>密码：<input name="password" type="password" /></label>
    <button type="submit">提交</button>
  </form>
  <iframe src="about:blank" name="ifr"></iframe>
</body>
</html>
  